package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 销售管理的会员档案
 * </p>
 *
 * @author 冯政尚
 * @since 2018-09-12
 */
@TableName("archives")
public class Archives extends Model<Archives> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Long id;
    /**
     * 姓名
     */
	private String name;
    /**
     * 性别
     */
	private Integer sex;
    /**
     * 出生年月
     */
	private Long birth;
    /**
     * 家庭住址
     */
	private String address;
    /**
     * 成交日期
     */
	@TableField("DateOf_transaction")
	private Long DateOfTransaction;
    /**
     * 联系方式(手机号)
     */
	private Long phone;
    /**
     * 客户渠道
     */
	@TableField("customer_source")
	private String customerSource;
    /**
     * 录入人
     */
	private String person;
    /**
     * 套餐
     */
	@TableField("set_meal")
	private String setMeal;
	/**
	 * 套餐项名字
	 * @return
	 */
	@TableField(exist = false)
	private String mealName;

	public String getMealName() {
		return mealName;
	}

	public void setMealName(String mealName) {
		this.mealName = mealName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Long getBirth() {
		return birth;
	}

	public void setBirth(Long birth) {
		this.birth = birth;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Long getDateOfTransaction() {
		return DateOfTransaction;
	}

	public void setDateOfTransaction(Long DateOfTransaction) {
		this.DateOfTransaction = DateOfTransaction;
	}

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public String getCustomerSource() {
		return customerSource;
	}

	public void setCustomerSource(String customerSource) {
		this.customerSource = customerSource;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	public String getSetMeal() {
		return setMeal;
	}

	public void setSetMeal(String setMeal) {
		this.setMeal = setMeal;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Archives{" +
				"id=" + id +
				", name='" + name + '\'' +
				", sex=" + sex +
				", birth=" + birth +
				", address='" + address + '\'' +
				", DateOfTransaction=" + DateOfTransaction +
				", phone=" + phone +
				", customerSource='" + customerSource + '\'' +
				", person='" + person + '\'' +
				", setMeal='" + setMeal + '\'' +
				", mealName='" + mealName + '\'' +
				'}';
	}
}
